/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package canteen.sys.model.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author TNT
 */
@Entity
public class DesignationMaster implements Serializable {

    @Id
    @GeneratedValue
    private int desgId;
    @NotNull
    @Size(min = 5, max = 50, message = "Designational Name must >=5 or <=50 charactor")
    @Column(length = 50,unique=true)
    private String designationName;
    @NotNull
    private boolean status;

    public DesignationMaster(int desgId, String designationName, boolean status) {
        this.desgId = desgId;
        this.designationName = designationName;
        this.status = status;
    }

    public DesignationMaster() {
    }

    public int getDesgId() {
        return desgId;
    }

    public void setDesgId(int desgId) {
        this.desgId = desgId;
    }

    public String getDesignationName() {
        return designationName;
    }

    public void setDesignationName(String designationName) {
        this.designationName = designationName;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
}
